package com.bjpowernode.mappers;

import com.bjpowernode.annotations.DataScope;
import com.bjpowernode.entities.TActivity;
import com.bjpowernode.querys.ActivityQuery;
import com.bjpowernode.querys.BaseQuery;

import java.util.List;

public interface TActivityMapper {
    TActivity selectById(Integer id);

    @DataScope(tableAlias = "ta", columnName = "owner_id")
    List<TActivity> selectByPage(BaseQuery baseQuery, ActivityQuery activityQuery);

    Integer selectGoingActivityCount();

    Integer selectTotalActivityCount();

    int insert(TActivity record);

    int insertSelective(TActivity record);

    int updateById(TActivity record);

    int updateByIdSelective(TActivity record);

    int deleteById(Integer id);
}